package com.sec.android.app.myfiles.shadow.sem;

/**
 * Created by jaebae on 2016-07-04.
 */

import android.content.Context;

import com.samsung.android.privatemode.SemPrivateModeManager;

import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

@Implements(SemPrivateModeManager.class)
public class ShadowSemPrivateModeManager {
    public static boolean mStorageMounted = true;
    public static boolean mPrivateMode = true;
    public static boolean mIsReady = true;

    public static void init() {
        mStorageMounted = true;
        mPrivateMode = true;
        mIsReady = true;
    }

    @Implementation
    public static String getPrivateStoragePath(Context context) {
        return "/storage/Private";
    }

    @Implementation
    public static boolean isPrivateStorageMounted(Context context) {
        return mStorageMounted;
    }

    @Implementation
    public static int getState() {
        int ret = 0;
        if (mPrivateMode) {
            ret = 1;
        }
        return ret;
    }

    public static boolean isPrivateModeReady(Context context) {
        return mIsReady;
    }
}
